<template>
	<div class="hy-container">
		<HyPageHeader :title="`评审会议`">
			<Info :basicNameInfoData="basicNameInfoData"></Info>
		</HyPageHeader>
	</div>
</template>

<script lang="ts" setup>
import { getReviewMeetingDetailApi } from '/@/api/expertDatabase/meeting';
import HyPageHeader from '/@/components/HyPageHeader/index.vue';
import Info from './component/Info/index.vue';
import { ElLoading } from 'element-plus';
const router = useRouter();
const basicNameInfoData = ref();
//详情函数
const getMessage = async (id: any) => {
	const loading = ElLoading.service({
		lock: true,
		text: '获取数据中...',
	});
	await getReviewMeetingDetailApi({ id })
		.then((res) => {
			basicNameInfoData.value = { ...res };
		})
		.finally(() => {
			loading.close();
		});
};
onMounted(() => {
	//获取地址栏参数发送请求查详情
	const routerData = router.currentRoute.value.query;
	getMessage(routerData.id);
});
</script>

<style></style>
